home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Programming / Programming Languages / Harvest C / MPW Int & Lib / Interfaces / TerminalTools.h < prev    next >
Text File  |  1991-04-17  |  2KB  |  103 lines

  1. /*
  2.     TerminalTool.h
  3.     C Interface to the Terminal Manager Tools
  4.     Copyright © Apple Computer, Inc.    1988-90
  5.     All rights reserved
  6.     
  7. */
  8.  
  9. #ifndef __TERMINALTOOLS__
  10. #define __TERMINALTOOLS__
  11.  
  12. #ifndef __DIALOGS__
  13. #include <dialogs.h>
  14. #endif    __DIALOGS__
  15.  
  16. #ifndef __TERMINALS__
  17. #include <Terminals.h>
  18. #endif    __TERMINALS__
  19.  
  20. #define    tdefType            'tdef'
  21. #define    tvalType            'tval'
  22. #define    tsetType            'tset'
  23. #define    tlocType            'tloc'
  24. #define    tscrType            'tscr'
  25. #define    tbndType            'tbnd'
  26. #define    tverType            'vers'
  27.  
  28. #define    tmInitMsg             0    
  29. #define    tmDisposeMsg         1
  30. #define    tmSuspendMsg        2
  31. #define    tmResumeMsg            3
  32. #define    tmMenuMsg            4
  33. #define    tmEventMsg            5
  34. #define tmActivateMsg         6
  35. #define tmDeactivateMsg     7
  36. #define    tmGetErrorStringMsg    8
  37.  
  38.  
  39. #define tmIdleMsg             50
  40. #define    tmResetMsg             51
  41.  
  42. #define    tmKeyMsg            100
  43. #define    tmStreamMsg            101
  44. #define    tmResizeMsg            102 
  45. #define    tmUpdateMsg            103 
  46. #define    tmClickMsg            104
  47. #define    tmGetSelectionMsg    105
  48. #define    tmSetSelectionMsg    106
  49. #define    tmScrollMsg            107 
  50. #define    tmClearMsg            108
  51. #define    tmGetLineMsg        109
  52. #define    tmPaintMsg            110
  53. #define    tmCursorMsg            111
  54. #define    tmGetEnvironsMsg    112    
  55. #define    tmDoTermKeyMsg        113    
  56. #define tmCountTermKeysMsg    114
  57. #define    tmGetIndTermKeyMsg    115
  58.  
  59. #define    tmValidateMsg        0
  60. #define    tmDefaultMsg        1
  61.  
  62. #define    tmSpreflightMsg        0
  63. #define    tmSsetupMsg            1
  64. #define tmSitemMsg            2
  65. #define    tmSfilterMsg        3
  66. #define    tmScleanupMsg        4
  67.  
  68. #define    tmMgetMsg            0
  69. #define    tmMsetMsg            1
  70.  
  71. #define tmL2English            0
  72. #define tmL2Intl            1
  73.  
  74. struct TMSearchBlock {
  75.         StringHandle    theString;
  76.         Rect            where;
  77.         TMSearchTypes    searchType;
  78.         ProcPtr            callBack;
  79.         short            refnum;
  80.         struct TMSearchBlock    *next;
  81. };
  82.  
  83. #ifndef __cplusplus
  84. typedef struct TMSearchBlock TMSearchBlock;
  85. #endif
  86.  
  87. typedef TMSearchBlock *TMSearchBlockPtr;
  88.  
  89. struct TMSetupStruct {
  90.         DialogPtr        theDialog;
  91.         short            count;
  92.         Ptr                theConfig;
  93.         short            procID;    
  94. };
  95.  
  96. #ifndef __cplusplus
  97. typedef struct TMSetupStruct TMSetupStruct;
  98. #endif
  99.  
  100. typedef TMSetupStruct *TMSetupPtr;
  101.  
  102.  
  103. #endif __TERMINALTOOLS__